<style type="text/css">
.myinfo-main .myinfo-right .myprofile ul li .lab {
    text-align: right;
}
.myinfo-main .myinfo-right .myprofile ul li {
    width: 620px;
}
.myinfo-main .myinfo-right .myprofile ul li .inp {
    margin-left: 10px;
}
.submit-btn {
    margin-left: 130px;
}
</style>
<div class="myinfo-main">
	<div class="myinfo-right">
		<div class='myprofile'>
			<p class='title'>&nbsp;&nbsp;Billing Address</p>
			<?php 		
				$form=$this->beginWidget('application.components.widgets.CActiveFormPlus', array(
						'id'=>'login-form',
						'enableClientValidation' => true,
						'clientOptions' => array(
							'validateOnSubmit' => true
						),
			)); ?>

			<ul class='info-left'>
				<li><?php echo $form->labelEx($model,'First Name:',array("class"=>"lab")); ?>
					<span class="inp"><?php echo $form->textField($model,'billing_first_name',array('size'=>20,'maxlength'=>20,'class'=>'form-control')); ?>
						<?php echo $form->error($model,'billing_first_name'); ?>
					</span>
					
				</li>
				<li>
					<?php echo $form->labelEx($model,'Last Name:',array("class"=>"lab")); ?>
					<span class="inp"><?php echo $form->textField($model,'billing_last_name',array('size'=>20,'maxlength'=>20,'class'=>'form-control')); ?>
						<?php echo $form->error($model,'billing_last_name'); ?>
					</span>
					
				</li>
				<li>
					<?php echo $form->labelEx($model,'email:',array("class"=>"lab")); ?>
					<span class="inp"><?php echo $form->textField($model,'billing_email',array('size'=>20,'maxlength'=>60,'class'=>'form-control')); ?>
						<?php echo $form->error($model,'billing_email'); ?>
					</span>
				</li>
				<li><?php echo $form->labelEx($model,'Address1:',array("class"=>"lab")); ?>
					<span class="inp"><?php echo $form->textField($model,'billing_address1',array('size'=>20,'maxlength'=>20,'class'=>'form-control' )); ?>
						<?php echo $form->error($model,'billing_address1'); ?>
					</span>
					
				</li>
				<li>
					<?php echo $form->labelEx($model,'Address2:',array("class"=>"lab")); ?>
					<span class="inp"><?php echo $form->textField($model,'billing_address2',array('size'=>20,'maxlength'=>20,'class'=>'form-control' )); ?>
						<?php echo $form->error($model,'billing_address2'); ?>
					</span>
					
				</li>

				<li>
					<?php echo $form->labelEx($model,'City:',array("class"=>"lab")); ?>
					<span class="inp"><?php echo $form->textField($model,'billing_city',array('size'=>20,'maxlength'=>20,'class'=>'form-control' )); ?>
						<?php echo $form->error($model,'billing_city'); ?>
					</span>
					
				</li>
				<li><?php echo $form->labelEx($model,'Country:',array("class"=>"lab")); ?>
					<span class="inp">
						<select name="CustomerOrderBillingInfo[billing_country]">
				                  <?php foreach ($country as $k => $v) {?>
				                  <option value="<?php echo $v->id;?>" ><?php echo $v->name;?></option>
				                  <?php }?>

				        </select></span>
					<?php echo $form->error($model,'billing_country'); ?>
				</li>
				<li>
					<?php echo $form->labelEx($model,'State:',array("class"=>"lab")); ?>
					<span class="inp"><select name="CustomerOrderBillingInfo[billing_state]">
				            <?php foreach ($state as $k => $v) {?>
				            <option value="<?php echo $v->id;?>" <?php echo $model->billing_state==$v->id?"selected":"" ;?>><?php echo $v->name;?></option>
				            <?php }?>
						</select></span>
					<?php echo $form->error($model,'billing_state'); ?>
				</li>
				<li><?php echo $form->labelEx($model,'Zip code:',array("class"=>"lab")); ?>
					<span class="inp"><?php echo $form->textField($model,'billing_zip',array('size'=>20,'maxlength'=>20,'class'=>'form-control' )); ?>
						<?php echo $form->error($model,'billing_zip'); ?>
					</span>
					
				</li>
				<li><?php echo $form->labelEx($model,'Phone:',array("class"=>"lab")); ?>
					<span class="inp"><?php echo $form->textField($model,'billing_phone',array('size'=>20,'maxlength'=>20,'class'=>'form-control' )); ?>
						<?php echo $form->error($model,'billing_phone'); ?>
					</span>
				</li>
				<?php echo CHtml::button('confirm',array('type' => 'submit','class' => 'btn submit-btn'))?>
			</ul>

			<?php $this->endWidget(); ?>
		</div>
		<!--
		<div class='myaddresses'>
			<p class='title'>&nbsp;&nbsp;My Addresses</p>
			<div class="address">
				<img src="" width="222" height="200">
				<img src="" width="222" height="200">
			</div>
		</div>
		-->
	</div>
</div>